package com.yuch.controller;

import com.yuch.service.impl.activemq.MessageServiceActivemqImpl;
import com.yuch.service.impl.bak.DoMessageServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("message")
public class OutController {
    @Autowired
    private MessageServiceActivemqImpl doMessageService;

    @GetMapping
     public String test(){
        String s = doMessageService.doMessage();
        return s;
    }
}
